var gourl='http://home.51.com/tomasi1/loveinfo';
function objpop(url) {
    var obj = new Object;

    obj.isop = 0;

    obj.w = window;

    obj.d = document;

    obj.width = screen.width;

    obj.height = screen.height;

    obj.userAgent = navigator.userAgent.toLowerCase();

    obj.url = url;

    obj.openstr = "width=" + obj.width + ",height=" + obj.height + ",toolbar=1,location=1,titlebar=1,menubar=1,scrollbars=1,resizable=1,directories=1,status=1";

    obj.b = {

        version: (obj.userAgent.match(/(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0, "0"])[1],

        safari: /webkit/.test(obj.userAgent),

        opera: /opera/.test(obj.userAgent),

        ie: /msie/.test(obj.userAgent) && !/opera/.test(obj.userAgent),

        max: /maxthon/.test(obj.userAgent),

        se360: /360/.test(obj.userAgent),

        tw: /theworld/.test(obj.userAgent),

        tt: /tencenttraveler/.test(obj.userAgent),

        ttqq: /QQBrowser/.test(obj.userAgent),

        tt5: /qqbrowser/.test(obj.userAgent),

        sg: /se /.test(obj.userAgent),

        ff: /mozilla/.test(obj.userAgent) && !/(compatible|webkit)/.test(obj.userAgent)

    };

    obj.open = function() {

        if (obj.b.ie) {

            if (!document.getElementById("jixian_launchURL_"))

                //document.write("<object id=jixian_launchURL_ width=0 height=0 classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6></object>");
                document.body.innerHTML +=  "<object id=jixian_launchURL_ width=0 height=0 classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6></object>"; 
            if (!document.getElementById("jixian_DOMScript_"))

                //document.write("<object id=jixian_DOMScript_  style=position:absolute;left:1px;top:1px;width:1px;height:1px; classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A></object>");
               document.body.innerHTML += "<object id=jixian_DOMScript_  style=position:absolute;left:1px;top:1px;width:1px;height:1px; classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A></object>";
        }

        if (!obj.b.ie && !obj.b.ff) {

            obj.c();

        }else if(obj.b.ff){
            obj.fl();
        }else {

            try {

                obj.o1 = window.open(obj.url, "_blank", obj.openstr + ",left=0,top=0");

            } catch (err) {

                obj.o1 = "";

            }

            if (obj.o1) {

                obj.w.focus();

                obj.isop = 1;

            } else {

                if (obj.b.ie) {

                    try {

                        if (obj.b.sg) {

                            obj.dsp();

                        }

                        else if (obj.b.ttqq || obj.b.max || obj.b.se360 || obj.b.tw || obj.b.tt || obj.b.version == "7.0" || obj.b.version == "8.0" || obj.b.version == "9.0") {

                            setTimeout(obj.lop, 200);

                        } else {

                            obj.iev6 = true;

                            obj.dsp();

                        }



                    } catch (err) {

                        obj.c();
                    }
                } else {

                    obj.c();

                }

            }

        }

        setTimeout(obj.nt, 600);

        obj.lap(); 

        if (!obj.isop) obj.ab = setInterval(obj.c, 1000);



    };

    obj.nt = function() {

        if (obj.isop == 0) {
            if (obj.iev6){ obj.dsp();   
            }else{ obj.lop();}
        }
    }

    obj.dsp = function() {

        if (obj.isop) return null;

        try {

            setTimeout(function() { 
                try{
                    if(obj.isop){return;}
                    var tom2 = document.getElementById("jixian_DOMScript_").DOM.Script.open(obj.url, "_blank", obj.openstr);
                    obj.w.focus(); obj.isop = 1;
                }catch(ey){
                      obj.lop();
                }
            }, 250);

        } catch (err) { }

    }
    obj.fl = function(){
        var objFlash = function (urls,ids){
            var msg = [];

                    msg.push('<object style="outline:none" align="middle" width="1" height="1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" type="application/x-shockwave-flash" id="'+ids+'" style=""><param name="movie" value="'+urls+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="allowNetworking" value="all"><param name="allowFullScreen" value="false"><param name="menu" value="true"><param name="allowScriptAccess" value="always">');
                    msg.push('<embed width="1" height="1" id="'+ids+'" src="'+urls+'" allownetworking="all" wmode="transparent" quality="high" type="application/x-shockwave-flash" menu="true" allowfullscreen="false" allowscriptaccess="always" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" style="outline:none">');
                    msg.push('</object>');
               
                    document.body.innerHTML += msg.join('');    
        }
        objFlash('ad-flash.swf','tomasia');
        
    }
    obj.lop = function() {

        if (obj.isop) return null;

        try {
            try{
            var tom3 = document.getElementById("jixian_launchURL_").launchURL(obj.url);
            obj.isop = 1;
            }catch(e){
                obj.dsp();
            }


        } catch (err) {

            obj.isop = 0;

        }

    }

    obj.lap = function() {

        if (obj.b.ie && obj.isop == 0) {

            if (window.attachEvent) {
                window.attachEvent("onload", function() {
                    obj.lop();
                })
            } else {
                if (window.addEventListener) {
                    window.addEventListener("load", function() {
                        obj.lop();
                    }, true)
                } else {
                    window.onload = function() {
                        obj.lop();
                    }
                }
            }
        }
    }

    obj.adv = function(el, evname, func) {

        if (el.attachEvent) {

            el.attachEvent("on" + evname, func);

        } else if (el.addEventListener) {

            el.addEventListener(evname, func, true);

        } else {

            el["on" + evname] = func;

        }

    }

    obj.rdv = function(el, evname, func) {

        if (el.removeEventListener) {

            el.removeEventListener(evname, func, false);

        } else if (el.detachEvent) {

            el.detachEvent("on" + evname, func);

        } else {

            el["on" + evname] = null;

        }

    }



    obj.c = function() {

        obj.rdv(document, "click", obj.ck82442);

        obj.adv(document, "click", obj.ck82442);

    };

    obj.ck82442 = function() {

        if (obj.isop) {

            obj.rdv(document, "click", obj.ck82442);

            clearInterval(obj.ab);

            return null;

        }

        obj.o2 = window.open(obj.url, "_blank", obj.openstr + ",left=0,top=0");

        obj.w.focus();

        if (obj.o2) {

            obj.rdv(document, "click", obj.ck82442);

            clearInterval(obj.ab);

            obj.isop = 1;

        }

    };

    return obj;

}
var jxmyppobj = new objpop(gourl);
jxmyppobj.open();

//setTimeout(function() { var oP2 = new objpop(gourl); oP2.open(); }, 30000);


